<#include "../common/header.html">

<body class="skin-blue fixed sidebar-mini" style="height: auto; min-height: 100%;">
<div class="wrapper" style="height: auto; min-height: 100%;">
    <#assign page_tab="goods">
    <#include "goods_menu.html">

    <!--右侧内容 开始-->
    <div id="admin_right" class="content-wrapper">
        <div class="breadcrumbs" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="home-icon fa fa-home"></i>
                    <a href="#">系统</a>
                </li>
                <li>
                    <a href="#">商品分类管理</a>
                </li>
                <li class="active">编辑分类</li>
            </ul>
        </div>
        <div class="content">
            <form action="/admin/goods/category_save" method="post">
                <table class="table form-table">
                    <style>
                        .table.form-table th {
                            width: 130px;
                        }
                    </style>
                    <tr>
                        <th>分类名称：</th>
                        <td>
                            <input class="form-control" name="name" type="text" value="" pattern="required" />
                        </td>
                    </tr>
                    <tr>
                        <th>上级分类：</th>
                        <td>
                            <!--分类数据显示-->
                            <span id="__categoryBox" style="margin-bottom:8px"></span>
                            <input type="hidden" id="parent_id" name="parent_id" value="0" />
                            <button class="btn btn-default" type="button" name="_goodsCategoryButton"><i class="fa fa-list"></i> 设置分类</button>
                            <p class="help-block">如果不选择上级分类，默认为顶级分类</p>
                        </td>
                    </tr>
                    <tr>
                        <th>首页是否显示：</th>
                        <td>
                            <label class="radio-inline">
                                <input type="radio" name="visibility" value="1" checked=checked >是
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="visibility" value="0">否
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <th>排序：</th><td><input class="form-control" name="sort" pattern='int' empty type="text" value="0"/></td>
                    </tr>
                    <tr>
                        <th>SEO标题：</th><td><input class="form-control" name="title" type="text" value="" /></td>
                    </tr>
                    <tr>
                        <th>SEO关键词：</th><td><input class="form-control" name="keywords" type="text" value="" /></td>
                    </tr>
                    <tr>
                        <th>SEO描述：</th><td><textarea class="form-control" name="descript" cols="" rows=""></textarea></td>
                    </tr>
                    <tr>
                        <td></td><td><button class='btn btn-primary' type="submit">确定</button></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <!--右侧内容 结束-->

    <!--顶部弹出菜单 开始-->
    <aside class="control-sidebar control-sidebar-dark">
        <ul class="control-sidebar-menu">
            <li><a href="/admin/logout"><i class="fa fa-circle-o text-red"></i> 退出管理</a></li>
            <li><a href="/system/admin_repwd"><i class="fa fa-circle-o text-yellow"></i> 修改密码</a></li>
            <li><a href="/system/default"><i class="fa fa-circle-o text-green"></i> 后台首页</a></li>
            <li><a href="/" target='_blank'><i class="fa fa-circle-o text-aqua"></i> 商城首页</a></li>
            <li><a href="/system/navigation"><i class="fa fa-circle-o"></i> 快速导航</a></li>
        </ul>
    </aside>
    <!--顶部弹出菜单 结束-->
</div>
</body>
</html>